<div id="mainDiv">
	<div id="headerPage">
		<div id="logo">
			<div class="png"></div>
			<a href="{$GLOBALS.site_url}/"><img src="/templates/ClearView/main/images/logo.png" border="0" alt="motorcycleindustryjobs" title="motorcycleindustryjobs" /></a>
		</div>

		<div id="userMenu">
			<form id="langSwitcherForm" method="get" action="">
				<select name="lang" onchange="location.href='{$GLOBALS.site_url}{$url}?lang='+this.value+'&amp;{$params}'" style="width: 200px;">
					{foreach from=$GLOBALS.languages item=language}
						<option value="{$language.id}"{if $language.id == $GLOBALS.current_language} selected="selected"{/if}>{$language.caption}</option>
					{/foreach}
				</select>
			</form>
			
			<span id="userMenuLinks" style="width:400px;">
			{if $GLOBALS.current_user.logged_in}
				[[Welcome]] {if $GLOBALS.current_user.subuser}{$GLOBALS.current_user.subuser.username}{else}{$GLOBALS.current_user.username}{/if}, &nbsp;
				{if $GLOBALS.current_user.new_messages > 0}
					{if $acl->isAllowed('use_private_messages')}
						<a href="{$GLOBALS.site_url}/private-messages/inbox/"><img src="{image}new_msg.gif" border="0" alt="[[You have]] {$GLOBALS.current_user.new_messages} [[message]]"  title="[[You have]] {$GLOBALS.current_user.new_messages} [[message]]" /></a> &nbsp;
					{elseif $acl->getPermissionParams('use_private_messages') == "message"}
						<a href="{$GLOBALS.site_url}/private-messages/inbox/" onclick="popUpWindow('{$GLOBALS.site_url}/access-denied/?permission=use_private_messages', 300, 300, '[[You have]] {$GLOBALS.current_user.new_messages} [[message]]'); return false;" ><img src="{image}new_msg.gif" border="0" alt="[[You have]] {$GLOBALS.current_user.new_messages} [[message]]"  title="[[You have]] {$GLOBALS.current_user.new_messages} [[message]]" /></a> &nbsp;
					{/if}
				{/if}
				<a href="{$GLOBALS.site_url}/">[[Home]]</a>&nbsp; | &nbsp;<a href="{$GLOBALS.site_url}/logout/">[[Logout]]</a> &nbsp;
			{else}
				<a href="{$GLOBALS.site_url}/">[[Home]]</a>&nbsp; | &nbsp;<a href="{$GLOBALS.site_url}/registration/">[[Register]]</a>&nbsp; | &nbsp;<a href="{$GLOBALS.site_url}/login/">[[Sign In]]</a> &nbsp;
			{/if}
			{if !$GLOBALS.current_user.logged_in}
				{module name="social" function="social_login"}
			{/if}
			</span>
		</div>
	</div>
    <div class="clr"></div>
	{module name="menu" function="top_menu"}